import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: "/",
            redirect: {
                name: 'edit'
            }
        },
        {
            path: '/preview',
            name: 'preview',
            component: require('@/views/preview').default
        },
        {
            path: '/edit',
            name: 'edit',
            component: require('@/views/edit').default
        },
        {
            path: '/help',
            name: 'help',
            component: require('@/views/help').default
        },
        {
            path: '/account',
            name: 'account',
            component: require('@/components/account').default
        },
        {
            path: '*',
            redirect: '/'
        }
    ]
})
